﻿@using GameSchool.Models.AccountModels
@model GameSchool.ViewModels.Course.ListViewModel
@{
    ViewBag.Title = "Námskeið";
}
<h2>Námskeið</h2>
<table class="table table-striped">
    <tr>
        <th>
            Heiti
        </th>
        <th>
            Önn
        </th>
        <th>
            Leiðbeinendur
        </th>
        <th>
            Nemendur
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model.coursesTeacher)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SemesterName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.InstructorCount)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.StudentCount)
            </td>
            <td>
                <a href="@Url.Action("EditStudents", new { id = item.CourseID })" class="btn btn-mini">Nemendaskráning</a>
            </td>
        </tr>
    }
</table>
